Skip to content

v1.5.6#79

Merged
ForestOfLight merged 67 commits into
mainfrom
dev
May 6, 2026
Merged

v1.5.6#79
ForestOfLight merged 67 commits into
mainfrom
dev

Conversation

@ForestOfLight
Copy link
Copy Markdown
Owner

What's New

  • Minecraft 26.20 Support
  • renderSignalStrength: InfoDisplay rule that renders the signal strength number on top of nearby redstone dust.
  • renderEndGatewayExits: Shows the exit point of end gateways and their potential movement area.
  • heldItemDurability: InfoDisplay rule that shows the durability of the tool in your main hand.
  • The wiki is now semi-automated! It should now be more verbose and better up-to-date.

Improvements

  • /debugentity: Text-based debug information is now available on Realms.

Fixes

  • ./canopy menu: Text fields now default to their current value instead of their default value.

... and more improvements behind the scenes!

ForestOfLight and others added 30 commits March 10, 2026 11:37
This needs some heavy refactoring in the InfoDisplay classes and there could probably be some inheritance/simplification in rendering
Replace per-test-file vi.mock() boilerplate with comprehensive mock
implementations in __mocks__/@minecraft/server.js and
__mocks__/@minecraft/server-ui.js. All vi.fn() stubs (subscribe,
runJob, run, runInterval, etc.) now live in one place and are applied
automatically via the resolve.alias in vite.config.js.

Adds vitest.setup.js (referenced by setupFiles) as a central place
for future shared test setup.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Moves all per-file vi.mock('@minecraft/server') and vi.mock('@minecraft/server-ui')
blocks into centralized __mocks__/ files so mock definitions live in one place.
Test files that need behavior different from the centralized mock use importOriginal
to extend rather than replace the centralized mock.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Vector.multiply -> Vector.scale
- Vector.divide removed. Use Vector.scale(1/x) instead
Introduces three local regolith filters and two new profiles to automate the release workflow.

Filters (filters/)

update_mob_data — fetches the latest stable bedrock-samples tag from GitHub at build time and regenerates categoryToMobMap (from behavior_pack/spawn_rules/) and meleeMobs (from behavior_pack/entities/) in data.js
bump_version — interactively prompts for major/minor/patch and updates PACK_VERSION in constants.js and header.name/header.version/dependency versions in both manifests, writing changes to both source files and the regolith temp copy
package_mcaddon — renames the temp BP/RP dirs to Canopy[BP]/Canopy[RP], then zips them into build/Canopy-v{version}.mcaddon
Regolith profiles (config.json)

release — runs update_mob_data → package_mcaddon; exports to none since the filter writes the artifact directly to build/
bump-version — runs bump_version standalone; falls back to settings.bumpType when stdin is not a TTY
VSCode tasks (.vscode/tasks.json)

Added tasks for all profiles (run default, run preview, run release, bump version) and renamed the existing watch task to watch default for consistency. The bump version task opens a new panel and stays open so the readline prompt is accessible.
ForestOfLight and others added 26 commits April 24, 2026 13:19
Update en_US.lang command descriptions to preserve the original hand-written
wiki formatting, and update camera.js subCommandWikiDescription strings to
match the original wiki text for the /cam and /cs commands.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: register handDurability in InfoDisplay

feat: add handDurability lang strings

refactor: clean up handDurability
@codacy-production
Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 3 critical · 10 medium · 10 minor

Alerts:
⚠ 23 issues (≤ 0 issues of at least minor severity)

Results:
23 new issues

Category Results
BestPractice 1 medium
Security 3 critical
CodeStyle 10 minor
Complexity 9 medium

View in Codacy

🟢 Metrics 1999 complexity · -97 duplication

Metric Results
Complexity 1999
Duplication -97

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@ForestOfLight
Copy link
Copy Markdown
Owner Author

CI is failing because of a misconfiguration on @minecraft/debug-utilities on Mojang's side.

@ForestOfLight ForestOfLight merged commit 8b88c62 into main May 6, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants